package com.mzj.saas.jobs.bill.entity;



import com.mzj.saas.jobs.commons.IdEntity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "saas_house_remaining")
public class HouseRemaining extends IdEntity {

    /**
     * 类型：1产权单位  2物业
     */
    @Basic
    @Column(name = "remaining_type", nullable = true)
    private Integer remainingType;
    /**
     * 余额类型：1个人承租人 2单位承租人
     */
    @Basic
    @Column(name = "type", nullable = true)
    private Integer type;
    /**
     * 房屋id
     */
    @Basic
    @Column(name = "house_id", nullable = true)
    private String houseId;
    /**
     * 收款机构id
     */
    @Basic
    @Column(name = "org_id", nullable = true)
    private Long orgId;
    /**
     * 账户可用余额
     */
    @Basic
    @Column(name = "balance_fee", nullable = true)
    private Integer balanceFee;

    /**
     * 押金
     */
    @Basic
    @Column(name = "cash_pledge", nullable = true)
    private Integer cashPledge;
    /**
     * 承租人
     */
    @Basic
    @Column(name = "match_user_id", nullable = true)
    private String matchUserId;
    /**
     * 操作时间
     */
    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime;
    /**
     * 创建时间
     */
    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime;
    /**
     * 状态：1正常 2已删除 3延期 4欠费 5已退租 6已退款 7已冻结
     */
    @Basic
    @Column(name = "status", nullable = true)
    private Integer status;
    /**
     * 延期开始时间
     */
    @Basic
    @Column(name = "deferred_start_time", nullable = true)
    private Date deferredStartTime;
    /**
     * 延期结束时间
     */
    @Basic
    @Column(name = "deferred_end_time", nullable = true)
    private Date deferredEndTime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getCashPledge() {
        return cashPledge;
    }

    public void setCashPledge(Integer cashPledge) {
        this.cashPledge = cashPledge;
    }

    public Date getDeferredStartTime() {
        return deferredStartTime;
    }

    public void setDeferredStartTime(Date deferredStartTime) {
        this.deferredStartTime = deferredStartTime;
    }

    public Date getDeferredEndTime() {
        return deferredEndTime;
    }

    public void setDeferredEndTime(Date deferredEndTime) {
        this.deferredEndTime = deferredEndTime;
    }

    public Integer getRemainingType() {
        return remainingType;
    }

    public void setRemainingType(Integer remainingType) {
        this.remainingType = remainingType;
    }

    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Integer getBalanceFee() {
        return balanceFee;
    }

    public void setBalanceFee(Integer balanceFee) {
        this.balanceFee = balanceFee;
    }

    public String getMatchUserId() {
        return matchUserId;
    }

    public void setMatchUserId(String matchUserId) {
        this.matchUserId = matchUserId;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date create_time) {
        this.createTime = create_time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
